package com.bilibili.code;

public class code1 {
    public static String name ;
    public static String []cards = new String[54];
    {
        System.out.println("动态代码块");
        System.out.println("创建对象就执行");
    }
    static {
        System.out.println("静态代码块");
        System.out.println("与类一起执行");
        name="静态";
        cards[0]="A";
        cards[1]="B";
        //.............
    }

    public static void main(String[] args) {
        System.out.println("main方法");
        System.out.println(name);  
        code1 lz = new code1();
    }
}
